package com.lagou.utils;

import com.alibaba.druid.pool.DruidDataSource;

public class DruidUtils {
    private DruidUtils() {

    }

    private static DruidDataSource druidDataSource = new DruidDataSource();

    static {
        druidDataSource.setDriverClassName("com.mysql.jdbc.Driver");
        druidDataSource.setUrl("jdbc:mysql://192.168.123.128:3306/testdb");
        druidDataSource.setUsername("testuser");
        druidDataSource.setPassword("123456");
    }

    public static DruidDataSource getInstance() {
        return druidDataSource;
    }
}
